package com.hzx.ssm.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel("用户实体类")
public class User {
    @ApiModelProperty("用户id")
    private String user_id;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("用户密码")
    private String password;
    @ApiModelProperty("用户真实姓名")
    private String realname;
    @ApiModelProperty("用户住址")
    private String address;
    @ApiModelProperty("用户性别")
    private String sex;
    @ApiModelProperty("用户电话")
    private String tel;
    @ApiModelProperty("用户头像图片")
    private String face;
    @ApiModelProperty("用户注册时间")
    private Date registration;
    @ApiModelProperty("用户是否可用")
    private int available;

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public Date getRegistration() {
        return registration;
    }

    public void setRegistration(Date registration) {
        this.registration = registration;
    }

    public int getAvailable() {
        return available;
    }

    public void setAvailable(int available) {
        this.available = available;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id='" + user_id + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", realname='" + realname + '\'' +
                ", address='" + address + '\'' +
                ", sex='" + sex + '\'' +
                ", tel='" + tel + '\'' +
                ", face='" + face + '\'' +
                ", registration=" + registration +
                ", available=" + available +
                '}';
    }
}
